package com.light.gulimall.order.vo;

/**
 * 锁定库存结果返回类
 */
public class StockLockResultVO {

    private Long skuId;

    private Integer num;

    private boolean locked;


    public StockLockResultVO() {
    }

    public StockLockResultVO(Long skuId, Integer num, boolean locked) {
        this.skuId = skuId;
        this.num = num;
        this.locked = locked;
    }

    /**
     * 获取
     * @return skuId
     */
    public Long getSkuId() {
        return skuId;
    }

    /**
     * 设置
     * @param skuId
     */
    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    /**
     * 获取
     * @return num
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 设置
     * @param num
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 获取
     * @return locked
     */
    public boolean isLocked() {
        return locked;
    }

    /**
     * 设置
     * @param locked
     */
    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    public String toString() {
        return "StockLockResultVO{skuId = " + skuId + ", num = " + num + ", locked = " + locked + "}";
    }
}
